home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / iib122.lha / IIB / Threads / Transparent_background < prev    next >
Internet Message Format  |  1998-04-13  |  9KB

  1. Date:         Fri, 3 Apr 1998 20:16:48 +0200
  2. From: Enrico Piria <rm03447@MI.FLASHNET.IT>
  3. Subject: [IML] QUEST:Transparent color and Imagine
  4.  
  5. Hi all!
  6. I'm sorry if I repost this message, but the first time I forgot to
  7. precede the subject with "QUEST:"
  8. I'm a Web designer.
  9. I'm trying to make an animation in Imagine 4.0 for DOS and to use it on
  10. a web page.
  11. To do it, first I make the animation, then I convert each frame in a GIF
  12. file and finally I place all the frames in a single animated GIF image.
  13. So far so good.
  14. For my purposes I've to make this image have a transparent background
  15. color (a very useful feature of GIF format). So I can change the
  16. background of the Web page without changing the background color of the
  17. images showed in the page.
  18. To do this in Imagine, I've tried two ways, but without success.
  19.  
  20. 1. I change the +Zenith Horizon -Zenith Global settings to the same
  21. color.
  22. Doing this, also the image rendered acquires some bit of the background
  23. color.
  24. It's not what I want.
  25.  
  26. 2. I change the background picture Global setting to a previously
  27. prepared image that shows only the uniform background color.
  28. Even doing this the image rendered reflects the background color.
  29.  
  30. What else can I try?
  31.  
  32. Thank you
  33.  
  34. ----------------------------------
  35.  
  36. Date:         Sat, 4 Apr 1998 00:37:46 +0400
  37. From: Charles Blaquiere <blaq@INTERLOG.COM>
  38.  
  39. Enrico, I'm not getting the same results. I just placed a reflective
  40. sphere above a ground object in Stage, with the camera horizontal, so
  41. the ground would only occupy the bottom half of the image. Rendered with
  42. default globals (all black), and got the following reflections on the
  43. ball: black in the upper half, ground in the lower half, and the sky
  44. behind it was black.
  45.  
  46. I loaded an all-red backdrop image and re-rendered. The sky was now red,
  47. but the ball did not change. The backdop doesn't exist in the Imagine 3D
  48. universe; it's added in the background after the renderer has done its
  49. job.
  50.  
  51. If you use the Zenith/Horizon settings to specify an environment, the
  52. imaginary sphere created does indeed play a role in the renderer. For
  53. example, setting all three controls to full green will create green
  54. reflections in the ball, and the sky will be green.
  55.  
  56. If you use both a backdrop and Zenith/Horizon colors, the sky will be
  57. the color of the backdrop, yet objects will reflect the Zenith/Horizon.
  58.  
  59. I believe your problem occurred because you forgot to nullify
  60. Zenith/Horizon settings when you loaded a backdrop.
  61.  
  62. So, the solution is definitely to use the desired background color as a
  63. backdrop image, and set Zenith/Horizon to the colors you wish reflected
  64. by your object (or leave them black). I guarantee this will render the
  65. way you want.
  66.  
  67. ----------------------------------
  68.  
  69. Date:         Sat, 4 Apr 1998 11:51:39 +0100
  70. From: George Cole <cole.family@VIRGIN.NET>
  71.  
  72. > 1. I change the +Zenith Horizon -Zenith Global settings to the same
  73. > color.
  74. > Doing this, also the image rendered acquires some bit of the
  75. > background
  76. > color.
  77. > It's not what I want.
  78.  
  79. That's because at the edge of a curve the pixels take up a bit of the
  80. background colour so the object blends in better. Just have an idea of
  81. what your background colour is going to be e.g. if it will be navy or
  82. black when render with a navy background and it will look seemless on
  83. any dark background, when you make the background colour of the image
  84. transparent. If however the background may be bright yellow or bright
  85. red then you may have to render two versions: 1 with a bright yellow
  86. background and one with a bright red background. Alternatively you could
  87. render it with an orange background (a mix of the red and yellow) and
  88. see if that is seemless enough. I think you are going to find that an
  89. animation with a transparent background is going to look a bit strange
  90. around the edge pixels of the image (non-transparent part). Also make
  91. sure that your background colour is found nowhere else on the picture as
  92. those parts will become transparent also. Another problem is that when
  93. you load the frames into a gif animator it changes the palette to a
  94. global palette (one they all share) which means that the background may
  95. actually change or become dotted, so if you can make your background
  96. colour one that is already in the gif palette.
  97.  
  98. > 2. I change the background picture Global setting to a previously
  99. > prepared image that shows only the uniform background color.
  100. > Even doing this the image rendered reflects the background color.
  101.  
  102. I don't see why this should happen as it didn't happen to me the other
  103. day whilst rendering a chrome logo (highly reflective).
  104.  
  105. hope this helps,
  106.  
  107. ----------------------------------
  108.  
  109. Date:         Sat, 4 Apr 1998 06:50:05 -0500
  110. From: Gregory Denby <gdenby@TWAIN.HELIOS.ND.EDU>
  111.  
  112. Enrico Piria wrote:
  113. >To do it, first I make the animation, then I convert each frame in a GIF
  114. >file and finally I place all the frames in a single animated GIF image.
  115. <snip>
  116. >Doing this, also the image rendered acquires some bit of the background
  117. >color.
  118. &
  119. >Even doing this the image rendered reflects the background color.
  120.  
  121. I'm not quite sure what is happening from your description, but my
  122. guess is this: when you first make the animation, the compression
  123. routine is creating "artifacts" which average together the background
  124. and foreground pixels in some places. Try rendering each frame seperately
  125. as a .bmp, and then find a utility to batch process the images into
  126. .gifs that share the same palette (I think an old freeware program
  127. called "display" did this, but its been years since I used it, so
  128. maybe not). Then compile the gif anim.
  129.  
  130. Other than this, maybe the hard way would work. Load each frame into
  131. an appropriate paint/image processor program and remove the offending
  132. pixels.
  133.  
  134. Hope this helps
  135.  
  136. ----------------------------------
  137.  
  138. Date:         Sat, 4 Apr 1998 11:00:40 -0700
  139. From: Bill Graham <bill@TONGUEMONSTER.COM>
  140.  
  141. Enrico, you are travelling down a path that many web designers have, and it
  142. can be frustrating. However, besides editing each GIF frame separately, this
  143. is the only way I know of to get consistent results.
  144. (a) If your GIF is going to be over a solid background, render the anim with
  145. that color as the background, or at least a color close to it. Then make
  146. that color transparent.
  147. (b) If your GIF will be over a busy background, then render it over a SOLID
  148. color that most closely resembles the average of the colors of the target
  149. background image. Then make that color transparent.
  150. (c) It is a PITA, but you can use an image editing proggy to remove an
  151. outline of the image in each frame of the GIF. But I just recook the anim to
  152. match instead of dealing with that, usually.
  153.  
  154. Good luck!
  155.  
  156. ----------------------------------
  157.  
  158. Date:         Mon, 6 Apr 1998 09:12:15 PDT
  159. From: Ian Stearns <buzzbuzz@HOTMAIL.COM>
  160.  
  161. >Hi all!
  162. >I'm a Web designer.
  163. >I'm trying to make an animation in Imagine 4.0 for DOS and to use
  164. >it on a web page.
  165.  
  166. >For my purposes I've to make this image have a transparent background
  167. >color (a very useful feature of GIF format). So I can change the
  168. >background of the Web page without changing the background color of
  169.  
  170. Hi. I've done this too. You were doing everything correctly.
  171. Turn of anti-aliasing. If it's on, the background(Blue-Screen) will get
  172. blended with the foreground.  When you choose Blue as the transparent
  173. GIF color...you get transparent lace around the edges of the object.
  174. Have fun!
  175.  
  176. ----------------------------------
  177.  
  178. Date:         Wed, 8 Apr 1998 01:19:50 -0500
  179. From: "Stephen G." <sgiff@AIRMAIL.NET>
  180.  
  181. The best way to do this is not to turn off antialiasing but to use Mark
  182. Willis' textures for creating Alpha Channels  "AAalpha.itx"  Once you
  183. have created your normal render with the full image, apply the Alpha
  184. texture to your objects and create an alph channel image that you can
  185. load into Photoshop as an alpha channel.  Once you have done this create
  186. a separate layer underneath your image and add the background you are
  187. going to use on your web page into this layer.  Once you have done this
  188. select again the layer of your rendered objects using your alpha
  189. channel.  Then inverse the selection and delete the rendered
  190. background.  At this point you will have your objects overlaying your
  191. background image. Flatten your image and convert the image to 256
  192. colors.  You should still have your selection active.  At this point
  193. delete the background of your selection which will leave only your
  194. objects that you want to use in the transparent gif.  At this point
  195. change the background color to whatever color you like that is not used
  196. in your image and export as a transparent gif.  The advantage of doing
  197. it this way is that the edges of your images will have been blended with
  198. the background image of your webpage and there will be no discoloration
  199. involved at the edges of your pictures when you load them into your
  200. webpage.
  201.  
  202. ----------------------------------
  203.